package com.shungen.apicloud.service.impl;

import com.shungen.apicloud.config.EmailClient;
import com.shungen.apicloud.service.EmailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.mail.MessagingException;

/**
 * @author shungen
 * @date 2024年07月23日 17:02
 */
@Service
public class EmailServiceImpl implements EmailService {

    @Resource
    private EmailClient emailClient;


    @Override
    public void sendEmail(String to, String subject, String text) throws MessagingException {
        emailClient.sendEmail(to,subject,text);
    }
}



